﻿using System;
using SharpSqlAnalyzer.nodes;

namespace SharpSqlAnalyzer.stmt.db2
{
	// Token: 0x020001DB RID: 475
	public class TDb2HandlerDeclaration : TCustomDb2Stmt
	{
		// Token: 0x06000FFE RID: 4094 RVA: 0x0030C6D4 File Offset: 0x0030A8D4
		public TDb2HandlerDeclaration(EDbVendor dbvendor) : base(dbvendor)
		{
			this.sqlstatementtype = ESqlStatementType.sstdb2handlerdeclaration;
		}

		// Token: 0x06000FFF RID: 4095 RVA: 0x0030C6E8 File Offset: 0x0030A8E8
		internal override void buildsql()
		{
		}

		// Token: 0x06001000 RID: 4096 RVA: 0x0030C6EA File Offset: 0x0030A8EA
		internal override void clear()
		{
		}

		// Token: 0x06001001 RID: 4097 RVA: 0x0030C6EC File Offset: 0x0030A8EC
		internal override string getasprettytext()
		{
			return "";
		}

		// Token: 0x06001002 RID: 4098 RVA: 0x0030C6F3 File Offset: 0x0030A8F3
		internal override void iterate(TVisitorAbs pvisitor)
		{
		}

		// Token: 0x06001003 RID: 4099 RVA: 0x0030C6F8 File Offset: 0x0030A8F8
		public override int doParseStatement(TCustomSqlStatement psql)
		{
			if (this.rootNode == null)
			{
				return -1;
			}
			TDeclareSqlNode tdeclareSqlNode = (TDeclareSqlNode)this.rootNode;
			base.doParseStatement(psql);
			tdeclareSqlNode.StmtSqlNode.doParse(this, ESqlClause.unknown);
			this.stmt = tdeclareSqlNode.StmtSqlNode.Stmt;
			return 0;
		}

		// Token: 0x170002FA RID: 762
		// (get) Token: 0x06001004 RID: 4100 RVA: 0x0030C742 File Offset: 0x0030A942
		// (set) Token: 0x06001005 RID: 4101 RVA: 0x0030C74A File Offset: 0x0030A94A
		public virtual TCustomSqlStatement Stmt
		{
			get
			{
				return this.stmt;
			}
			set
			{
				this.stmt = value;
			}
		}

		// Token: 0x06001006 RID: 4102 RVA: 0x0030C753 File Offset: 0x0030A953
		public override void accept(TParseTreeVisitor v)
		{
			v.preVisit(this);
			v.postVisit(this);
		}

		// Token: 0x06001007 RID: 4103 RVA: 0x0030C763 File Offset: 0x0030A963
		public override void acceptChildren(TParseTreeVisitor v)
		{
			v.preVisit(this);
			this.stmt.acceptChildren(v);
			v.postVisit(this);
		}

		// Token: 0x04001389 RID: 5001
		private TCustomSqlStatement stmt;
	}
}
